* ===============================================================================
* Table A1 / Figure 1 : network size trends across time
* ===============================================================================
* only sample size
estpost tabstat n_politics n_important /*
*/, by(ayear) stat(N) , if expand_new == 0
esttab using "./tables/table_sample_size.csv", replace cells("n_politics n_important")

* distinguish name generator types
* here I simply copy and paste the following results, and then 
* save it to `size_all_0708.csv' files

mean n0_important [pw=wt], over(ayear), if imp_name == 1 & expand_new == 0 
mean n_important3 [pw=wt], over(ayear), if imp_name == 1 & expand_new == 0 
mean n_important6 [pw=wt], over(ayear), if imp_name == 1 & expand_new == 0 
mean n_important  [pw=wt], over(ayear), if imp_name == 1 & expand_new == 0 
mean n0_politics [pw=wt], over(ayear), if imp_name == 0 & expand_new == 0 
mean n_politics3 [pw=wt], over(ayear), if imp_name == 0 & expand_new == 0 
mean n_politics  [pw=wt], over(ayear), if imp_name == 0 & expand_new == 0 

tabstat n_size, by(ayear) stat(mean sd min max N), if imp_name == 1
tabstat n_size, by(ayear) stat(mean sd min max N), if imp_name == 0

svy: mean n_zero if dataset == "TESS" & year == 2016 & imp_name == 1
svy: mean n_why_noissue if dataset == "TESS" & year == 2010 

